package cc.atliberty.creating.simplefactory.simplefactory2;

import java.util.Arrays;

/**
 * 简单工厂测试
 */
public class Client {
    public static void main(String[] args) {
        String[] str = {"grape", "strawberry"};
        Arrays.stream(str).forEach(str1 -> {
            FruitGarden.factory(str1).plant();
            FruitGarden.factory(str1).harvest();
        });
    }
}
